/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.distribution.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.yami.shop.distribution.common.vo.DistributionUserVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * @author yami
 */
@Data
@TableName( "tz_distribution_withdraw_cash")
public class DistributionWithdrawCash {

    @TableId
    @ApiModelProperty("提现记录id")
    private Long withdrawCashId;

    @ApiModelProperty("钱包id")
    private Long walletId;

    @ApiModelProperty("金额")
    private Double amount;

    @ApiModelProperty("手续费")
    private Double fee;

    @ApiModelProperty("类型(0 手动提现 1自动提现)")
    private Integer type;

    @ApiModelProperty("资金流向(1企业付款到微信零钱)")
    private Integer moneyFlow;

    @ApiModelProperty("流水号")
    private String merchantOrderId;

    @Version
    @ApiModelProperty("乐观锁")
    private Integer version;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("提现状态(0:申请中 1:提现成功 2:拒绝提现 -1:提现失败)")
    private Integer state;

    @ApiModelProperty("关联分销员")
    @TableField(exist = false)
    private DistributionUserVO distributionUser;

    @ApiModelProperty("排序字段 分销钱包-提现记录：0无 1金额 2手续费 3提现时间 4更新时间")
    @TableField(exist = false)
    private Integer sortParam = 0;

    @ApiModelProperty("排序类型 0无 1 正序 2倒序")
    @TableField(exist = false)
    private Integer sortType = 0;
}
